.class public Lcom/estrongs/android/pop/app/StreamingMediaPlayer;
.super Lcom/estrongs/android/pop/esclasses/ESActivity;
.source "StreamingMediaPlayer.java"

# interfaces
.implements Lcom/estrongs/android/pop/esclasses/ESVideoController$b;


# instance fields
.field private d:Lcom/estrongs/fs/f;

.field private e:Lcom/estrongs/android/ui/view/ESVideoView;

.field private f:I

.field private g:Lcom/estrongs/android/pop/esclasses/ESVideoController;

.field private h:Z

.field private i:J

.field private j:J

.field private k:J

.field private final l:Landroid/os/Handler;

.field private m:Ljava/io/File;

.field private final n:Ljava/lang/String;

.field private o:Z

.field private p:Ljava/lang/String;

.field private q:Z

.field private r:I

.field private s:I

.field private t:Ljava/lang/Thread;

.field private u:Landroid/app/ProgressDialog;

.field private v:Landroid/app/ProgressDialog;

.field private w:Z

.field private x:Z

.field private y:I


# direct methods
.method public constructor <init>()V
    .locals 3

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;-><init>()V

    .line 2
    invoke-static {p0}, Lcom/estrongs/fs/f;->a(Landroid/content/Context;)Lcom/estrongs/fs/f;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->d:Lcom/estrongs/fs/f;

    const/4 v0, 0x0

    .line 3
    iput v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->f:I

    .line 4
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->h:Z

    const-wide/16 v1, 0x0

    .line 5
    iput-wide v1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->j:J

    iput-wide v1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->k:J

    .line 6
    new-instance v1, Landroid/os/Handler;

    invoke-direct {v1}, Landroid/os/Handler;-><init>()V

    iput-object v1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->l:Landroid/os/Handler;

    const-string v1, "downloadingMedia.dat"

    .line 7
    iput-object v1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->n:Ljava/lang/String;

    .line 8
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->q:Z

    const/4 v1, 0x0

    .line 9
    iput-object v1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->u:Landroid/app/ProgressDialog;

    iput-object v1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->v:Landroid/app/ProgressDialog;

    .line 10
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->w:Z

    .line 11
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->x:Z

    return-void
.end method

.method private B()V
    .locals 1

    const/4 v0, 0x1

    .line 1
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->o:Z

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->t:Ljava/lang/Thread;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/lang/Thread;->isAlive()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->t:Ljava/lang/Thread;

    invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V

    :cond_0
    return-void
.end method

.method private C()V
    .locals 1

    const/4 v0, 0x1

    .line 1
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->x:Z

    .line 2
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->w:Z

    invoke-direct {p0, v0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->f(Z)V

    return-void
.end method

.method private D()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->u:Landroid/app/ProgressDialog;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->u:Landroid/app/ProgressDialog;

    iget-wide v1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->j:J

    long-to-int v2, v1

    invoke-virtual {v0, v2}, Landroid/app/ProgressDialog;->setProgress(I)V

    :cond_0
    return-void
.end method

.method private E()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->e:Lcom/estrongs/android/ui/view/ESVideoView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/view/ESVideoView;->seekTo(I)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->e:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/view/ESVideoView;->start()V

    const-wide/16 v0, 0x0

    .line 3
    iput-wide v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->k:J

    const/4 v0, 0x1

    .line 4
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->h:Z

    return-void
.end method

.method private F()V
    .locals 2

    .line 1
    new-instance v0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$d;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$d;-><init>(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)V

    .line 2
    iget-object v1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->l:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method private G()V
    .locals 5

    .line 1
    :try_start_0
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->h:Z

    if-nez v0, :cond_0

    iget-wide v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->j:J

    const-wide/32 v2, 0x100000

    cmp-long v4, v0, v2

    if-lez v4, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->F()V

    goto :goto_0

    .line 3
    :cond_0
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->h:Z

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->e:Lcom/estrongs/android/ui/view/ESVideoView;

    .line 4
    invoke-virtual {v0}, Lcom/estrongs/android/ui/view/ESVideoView;->isPlaying()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->e:Lcom/estrongs/android/ui/view/ESVideoView;

    .line 5
    invoke-virtual {v0}, Lcom/estrongs/android/ui/view/ESVideoView;->getDuration()I

    move-result v0

    iget-object v1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->e:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-virtual {v1}, Lcom/estrongs/android/ui/view/ESVideoView;->getCurrentPosition()I

    move-result v1

    sub-int/2addr v0, v1

    const/16 v1, 0x3e8

    if-gt v0, v1, :cond_1

    const/4 v0, 0x0

    .line 6
    invoke-direct {p0, v0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->f(Z)V
    :try_end_0
    .catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :cond_1
    :goto_0
    return-void
.end method

.method private H()Z
    .locals 5

    .line 1
    iget-wide v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->j:J

    iget-wide v2, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->i:J

    cmp-long v4, v0, v2

    if-nez v4, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method private I()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->o:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    return v0

    :cond_0
    const/4 v0, 0x1

    return v0
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)J
    .locals 2

    .line 1
    iget-wide v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->k:J

    return-wide v0
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;J)J
    .locals 0

    .line 2
    iput-wide p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->k:J

    return-wide p1
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;Ljava/lang/String;J)V
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2, p3}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->a(Ljava/lang/String;J)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;Z)V
    .locals 0

    .line 4
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->f(Z)V

    return-void
.end method

.method private a(Ljava/lang/String;J)V
    .locals 0

    .line 5
    new-instance p2, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$h;

    invoke-direct {p2, p0, p1}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$h;-><init>(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;Ljava/lang/String;)V

    .line 6
    new-instance p1, Ljava/lang/Thread;

    invoke-direct {p1, p2}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    iput-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->t:Ljava/lang/Thread;

    .line 7
    invoke-virtual {p1}, Ljava/lang/Thread;->start()V

    return-void
.end method

.method static synthetic b(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;J)J
    .locals 0

    .line 3
    iput-wide p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->i:J

    return-wide p1
.end method

.method static synthetic b(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)Z
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->H()Z

    move-result p0

    return p0
.end method

.method static synthetic b(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->w:Z

    return p1
.end method

.method static synthetic c(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->p:Ljava/lang/String;

    return-object p0
.end method

.method static synthetic d(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)Lcom/estrongs/fs/f;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->d:Lcom/estrongs/fs/f;

    return-object p0
.end method

.method static synthetic e(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->o:Z

    return p0
.end method

.method private f(Z)V
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->l:Landroid/os/Handler;

    new-instance v1, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$e;

    invoke-direct {v1, p0, p1}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$e;-><init>(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;Z)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method static synthetic f(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->q:Z

    return p0
.end method

.method static synthetic g(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->B()V

    return-void
.end method

.method static synthetic h(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)Landroid/app/ProgressDialog;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->v:Landroid/app/ProgressDialog;

    return-object p0
.end method

.method static synthetic i(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)Ljava/io/File;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->m:Ljava/io/File;

    return-object p0
.end method

.method static synthetic j(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)Lcom/estrongs/android/ui/view/ESVideoView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->e:Lcom/estrongs/android/ui/view/ESVideoView;

    return-object p0
.end method

.method static synthetic k(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->E()V

    return-void
.end method

.method static synthetic l(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->w:Z

    return p0
.end method

.method static synthetic m(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)Z
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->I()Z

    move-result p0

    return p0
.end method

.method static synthetic n(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->x:Z

    return p0
.end method

.method static synthetic o(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)Landroid/app/ProgressDialog;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->u:Landroid/app/ProgressDialog;

    return-object p0
.end method

.method static synthetic p(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)J
    .locals 2

    .line 1
    iget-wide v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->i:J

    return-wide v0
.end method

.method static synthetic q(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)J
    .locals 2

    .line 1
    iget-wide v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->j:J

    return-wide v0
.end method

.method static synthetic r(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)Landroid/os/Handler;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->l:Landroid/os/Handler;

    return-object p0
.end method


# virtual methods
.method public A()V
    .locals 1

    const/4 v0, 0x1

    .line 1
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->o:Z

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->I()Z

    return-void
.end method

.method public a(F)V
    .locals 1

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->e:Lcom/estrongs/android/ui/view/ESVideoView;

    if-eqz v0, :cond_0

    .line 9
    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/view/ESVideoView;->setSpeed(F)V

    :cond_0
    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 0

    return-void
.end method

.method public b()V
    .locals 0

    return-void
.end method

.method public b(Z)V
    .locals 0

    if-eqz p1, :cond_0

    .line 4
    invoke-virtual {p0}, Landroid/app/Activity;->getRequestedOrientation()I

    move-result p1

    iput p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->y:I

    const/16 p1, 0xe

    .line 5
    invoke-virtual {p0, p1}, Landroid/app/Activity;->setRequestedOrientation(I)V

    goto :goto_0

    .line 6
    :cond_0
    iget p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->y:I

    invoke-virtual {p0, p1}, Landroid/app/Activity;->setRequestedOrientation(I)V

    :goto_0
    return-void
.end method

.method public c(Ljava/lang/String;)V
    .locals 10
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 2
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->d:Lcom/estrongs/fs/f;

    invoke-virtual {v0, p1}, Lcom/estrongs/fs/f;->e(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object p1
    :try_end_0
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 3
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    const/4 p1, 0x0

    :goto_0
    if-nez p1, :cond_0

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->l:Landroid/os/Handler;

    new-instance v0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$i;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$i;-><init>(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)V

    invoke-virtual {p1, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void

    .line 5
    :cond_0
    new-instance v0, Ljava/io/File;

    invoke-virtual {p0}, Landroid/app/Activity;->getCacheDir()Ljava/io/File;

    move-result-object v1

    const-string v2, "downloadingMedia.dat"

    invoke-direct {v0, v1, v2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->m:Ljava/io/File;

    .line 6
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->m:Ljava/io/File;

    invoke-virtual {v0}, Ljava/io/File;->delete()Z

    .line 8
    :cond_1
    :try_start_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->m:Ljava/io/File;

    invoke-virtual {v0}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v0

    .line 9
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_2

    .line 10
    invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z

    .line 11
    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->m:Ljava/io/File;

    invoke-virtual {v0}, Ljava/io/File;->createNewFile()Z
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1

    .line 12
    new-instance v0, Ljava/io/FileOutputStream;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->m:Ljava/io/File;

    invoke-direct {v0, v1}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V

    const/high16 v1, 0x40000

    new-array v2, v1, [B

    const/4 v3, 0x0

    const/4 v4, 0x0

    .line 13
    :cond_3
    invoke-virtual {p1, v2, v3, v1}, Ljava/io/InputStream;->read([BII)I

    move-result v5

    if-gez v5, :cond_4

    goto :goto_3

    :cond_4
    :goto_1
    if-ge v5, v1, :cond_6

    sub-int v6, v1, v5

    .line 14
    invoke-virtual {p1, v2, v5, v6}, Ljava/io/InputStream;->read([BII)I

    move-result v6

    if-gez v6, :cond_5

    goto :goto_2

    :cond_5
    add-int/2addr v5, v6

    goto :goto_1

    .line 15
    :cond_6
    :goto_2
    invoke-virtual {v0, v2, v3, v5}, Ljava/io/FileOutputStream;->write([BII)V

    add-int/2addr v4, v5

    int-to-long v6, v4

    .line 16
    iput-wide v6, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->j:J

    .line 17
    iget-wide v6, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->k:J

    int-to-long v8, v5

    add-long/2addr v6, v8

    iput-wide v6, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->k:J

    .line 18
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->G()V

    .line 19
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->D()V

    .line 20
    iget-wide v5, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->j:J

    iget-wide v7, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->i:J

    cmp-long v9, v5, v7

    if-gez v9, :cond_7

    invoke-direct {p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->I()Z

    move-result v5

    if-nez v5, :cond_3

    .line 21
    :cond_7
    :goto_3
    invoke-virtual {p1}, Ljava/io/InputStream;->close()V

    .line 22
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->I()Z

    move-result p1

    if-eqz p1, :cond_8

    .line 23
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->C()V

    :cond_8
    return-void

    .line 24
    :catch_1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->l:Landroid/os/Handler;

    new-instance v0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$j;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$j;-><init>(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)V

    invoke-virtual {p1, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public g()V
    .locals 0

    return-void
.end method

.method public h(I)V
    .locals 1

    .line 2
    :try_start_0
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->q:Z

    if-nez v0, :cond_0

    .line 3
    invoke-virtual {p0, p1}, Landroid/app/Activity;->showDialog(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 4
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    :goto_0
    return-void
.end method

.method public j()V
    .locals 2

    .line 2
    iget v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->s:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    .line 3
    invoke-virtual {p0, v0}, Landroid/app/Activity;->setRequestedOrientation(I)V

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    .line 4
    invoke-virtual {p0, v0}, Landroid/app/Activity;->setRequestedOrientation(I)V

    :goto_0
    return-void
.end method

.method public m()V
    .locals 0

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->onBackPressed()V

    return-void
.end method

.method public onBackPressed()V
    .locals 2

    .line 1
    iget v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->r:I

    iget v1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->s:I

    if-eq v0, v1, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->j()V

    .line 3
    :cond_0
    invoke-super {p0}, Landroidx/activity/ComponentActivity;->onBackPressed()V

    return-void
.end method

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->g:Lcom/estrongs/android/pop/esclasses/ESVideoController;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/pop/esclasses/f;->f()V

    .line 4
    :cond_0
    iget p1, p1, Landroid/content/res/Configuration;->orientation:I

    iput p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->s:I

    return-void
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 2

    const/4 v0, 0x2

    .line 1
    invoke-virtual {p0, v0}, Landroid/app/Activity;->setDefaultKeyMode(I)V

    .line 2
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onCreate(Landroid/os/Bundle;)V

    .line 3
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p1

    const/16 v0, 0x7d0

    const/16 v1, 0x400

    invoke-virtual {p1, v0, v1}, Landroid/view/Window;->setFlags(II)V

    const p1, 0x7f0c02c5

    .line 4
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->setContentView(I)V

    .line 5
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object p1

    invoke-virtual {p1}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->p:Ljava/lang/String;

    .line 6
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    const-string v0, "es_from"

    invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const v0, 0x7f090d68

    .line 7
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/esclasses/ESVideoController;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->g:Lcom/estrongs/android/pop/esclasses/ESVideoController;

    .line 8
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_0

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->g:Lcom/estrongs/android/pop/esclasses/ESVideoController;

    const-string v0, "bluet"

    invoke-virtual {p1, v0}, Lcom/estrongs/android/pop/esclasses/ESVideoController;->setFrom(Ljava/lang/String;)V

    :cond_0
    const p1, 0x7f090d63

    .line 10
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/ui/view/ESVideoView;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->e:Lcom/estrongs/android/ui/view/ESVideoView;

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->g:Lcom/estrongs/android/pop/esclasses/ESVideoController;

    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/view/ESVideoView;->setMediaController(Lcom/estrongs/android/pop/esclasses/f;)V

    .line 12
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->g:Lcom/estrongs/android/pop/esclasses/ESVideoController;

    invoke-virtual {p1}, Landroid/widget/FrameLayout;->requestFocus()Z

    .line 13
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->e:Lcom/estrongs/android/ui/view/ESVideoView;

    new-instance v0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$a;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$a;-><init>(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)V

    .line 14
    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/view/ESVideoView;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V

    .line 15
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->e:Lcom/estrongs/android/ui/view/ESVideoView;

    new-instance v0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$f;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$f;-><init>(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)V

    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/view/ESVideoView;->setOnErrorListener(Landroid/media/MediaPlayer$OnErrorListener;)V

    .line 16
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->p:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/util/n0;->P(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_1

    const/4 p1, 0x4

    .line 17
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->h(I)V

    goto :goto_0

    .line 18
    :cond_1
    new-instance p1, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$g;

    invoke-direct {p1, p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$g;-><init>(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)V

    .line 19
    invoke-virtual {p1}, Ljava/lang/Thread;->start()V

    .line 20
    :goto_0
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object p1

    iget p1, p1, Landroid/content/res/Configuration;->orientation:I

    iput p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->r:I

    .line 21
    iput p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->s:I

    .line 22
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->g:Lcom/estrongs/android/pop/esclasses/ESVideoController;

    invoke-virtual {p1, p0}, Lcom/estrongs/android/pop/esclasses/ESVideoController;->setControllerListener(Lcom/estrongs/android/pop/esclasses/ESVideoController$b;)V

    return-void
.end method

.method protected onCreateDialog(I)Landroid/app/Dialog;
    .locals 5

    const/4 v0, 0x1

    const v1, 0x7f11029e

    const v2, 0x7f11065d

    const/4 v3, 0x0

    const v4, 0x1080027

    packed-switch p1, :pswitch_data_0

    const/4 p1, 0x0

    return-object p1

    .line 1
    :pswitch_0
    new-instance p1, Landroid/app/ProgressDialog;

    invoke-direct {p1, p0}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    iput-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->v:Landroid/app/ProgressDialog;

    const v1, 0x7f1108ec

    .line 2
    invoke-virtual {p0, v1}, Landroid/app/Activity;->getText(I)Ljava/lang/CharSequence;

    move-result-object v1

    invoke-virtual {p1, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->v:Landroid/app/ProgressDialog;

    invoke-virtual {p1, v0}, Landroid/app/ProgressDialog;->setIndeterminate(Z)V

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->v:Landroid/app/ProgressDialog;

    invoke-virtual {p1, v0}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    .line 5
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->v:Landroid/app/ProgressDialog;

    return-object p1

    .line 6
    :pswitch_1
    new-instance p1, Landroid/app/ProgressDialog;

    invoke-direct {p1, p0}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    iput-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->u:Landroid/app/ProgressDialog;

    .line 7
    invoke-virtual {p1, v4}, Landroid/app/ProgressDialog;->setIcon(I)V

    .line 8
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->u:Landroid/app/ProgressDialog;

    const v1, 0x7f110a3f

    invoke-virtual {p1, v1}, Landroid/app/ProgressDialog;->setTitle(I)V

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->u:Landroid/app/ProgressDialog;

    invoke-virtual {p1, v0}, Landroid/app/ProgressDialog;->setProgressStyle(I)V

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->u:Landroid/app/ProgressDialog;

    invoke-virtual {p1, v3}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->u:Landroid/app/ProgressDialog;

    const v0, 0x7f110a3e

    .line 12
    invoke-virtual {p0, v0}, Landroid/app/Activity;->getText(I)Ljava/lang/CharSequence;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 13
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->u:Landroid/app/ProgressDialog;

    const v0, 0x7f110299

    .line 14
    invoke-virtual {p0, v0}, Landroid/app/Activity;->getText(I)Ljava/lang/CharSequence;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$c;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$c;-><init>(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)V

    .line 15
    invoke-virtual {p1, v0, v1}, Landroid/app/ProgressDialog;->setButton2(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 16
    iget-object p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->u:Landroid/app/ProgressDialog;

    return-object p1

    .line 17
    :pswitch_2
    new-instance p1, Landroid/app/AlertDialog$Builder;

    invoke-direct {p1, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1, v4}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    .line 18
    invoke-virtual {p1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    .line 19
    invoke-virtual {p1, v3}, Landroid/app/AlertDialog$Builder;->setCancelable(Z)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    const v0, 0x7f110a41

    .line 20
    invoke-virtual {p1, v0}, Landroid/app/AlertDialog$Builder;->setMessage(I)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    new-instance v0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$b;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$b;-><init>(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)V

    .line 21
    invoke-virtual {p1, v1, v0}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    .line 22
    invoke-virtual {p1}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object p1

    return-object p1

    .line 23
    :pswitch_3
    new-instance p1, Landroid/app/AlertDialog$Builder;

    invoke-direct {p1, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1, v4}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    .line 24
    invoke-virtual {p1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    const v0, 0x7f110a42

    .line 25
    invoke-virtual {p1, v0}, Landroid/app/AlertDialog$Builder;->setMessage(I)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    .line 26
    invoke-virtual {p1, v3}, Landroid/app/AlertDialog$Builder;->setCancelable(Z)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    new-instance v0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$m;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$m;-><init>(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)V

    .line 27
    invoke-virtual {p1, v1, v0}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    .line 28
    invoke-virtual {p1}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object p1

    return-object p1

    .line 29
    :pswitch_4
    new-instance p1, Landroid/app/AlertDialog$Builder;

    invoke-direct {p1, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1, v4}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    .line 30
    invoke-virtual {p1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    .line 31
    invoke-virtual {p1, v3}, Landroid/app/AlertDialog$Builder;->setCancelable(Z)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    const v0, 0x7f110726

    .line 32
    invoke-virtual {p1, v0}, Landroid/app/AlertDialog$Builder;->setMessage(I)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    new-instance v0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$l;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$l;-><init>(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)V

    .line 33
    invoke-virtual {p1, v1, v0}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    .line 34
    invoke-virtual {p1}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object p1

    return-object p1

    .line 35
    :pswitch_5
    new-instance p1, Landroid/app/AlertDialog$Builder;

    invoke-direct {p1, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1, v4}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    .line 36
    invoke-virtual {p1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    .line 37
    invoke-virtual {p1, v3}, Landroid/app/AlertDialog$Builder;->setCancelable(Z)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    const v0, 0x7f110a40

    .line 38
    invoke-virtual {p1, v0}, Landroid/app/AlertDialog$Builder;->setMessage(I)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    new-instance v0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$k;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer$k;-><init>(Lcom/estrongs/android/pop/app/StreamingMediaPlayer;)V

    .line 39
    invoke-virtual {p1, v1, v0}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    .line 40
    invoke-virtual {p1}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object p1

    return-object p1

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method public onDestroy()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->B()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->m:Ljava/io/File;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->m:Ljava/io/File;

    invoke-virtual {v0}, Ljava/io/File;->delete()Z

    .line 4
    :cond_0
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onDestroy()V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1

    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    .line 1
    invoke-virtual {p2}, Landroid/view/KeyEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->A()V

    .line 3
    :cond_0
    invoke-super {p0, p1, p2}, Landroidx/appcompat/app/AppCompatActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result p1

    return p1
.end method

.method public onPause()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onPause()V

    .line 2
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->h:Z

    if-eqz v0, :cond_1

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->e:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/view/ESVideoView;->isPlaying()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->e:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/view/ESVideoView;->pause()V

    .line 5
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->e:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/view/ESVideoView;->getCurrentPosition()I

    move-result v0

    iput v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->f:I

    .line 6
    :cond_1
    invoke-virtual {p0}, Landroid/app/Activity;->isFinishing()Z

    move-result v0

    if-eqz v0, :cond_2

    const/4 v0, 0x1

    .line 7
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->q:Z

    :cond_2
    return-void
.end method

.method public onRestoreInstanceState(Landroid/os/Bundle;)V
    .locals 2

    const-string v0, "playback_position"

    const/4 v1, 0x0

    .line 1
    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result p1

    iput p1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->f:I

    return-void
.end method

.method public onResume()V
    .locals 2

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onResume()V

    .line 2
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->h:Z

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->e:Lcom/estrongs/android/ui/view/ESVideoView;

    iget v1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->f:I

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/view/ESVideoView;->seekTo(I)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->e:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/view/ESVideoView;->start()V

    :cond_0
    return-void
.end method

.method public onSaveInstanceState(Landroid/os/Bundle;)V
    .locals 2

    .line 1
    iget v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->f:I

    const-string v1, "playback_position"

    invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 2
    invoke-super {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->onSaveInstanceState(Landroid/os/Bundle;)V

    return-void
.end method

.method public onStop()V
    .locals 0

    .line 1
    invoke-super {p0}, Landroidx/appcompat/app/AppCompatActivity;->onStop()V

    return-void
.end method

.method public q()Z
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->e:Lcom/estrongs/android/ui/view/ESVideoView;

    if-eqz v0, :cond_0

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->m:Ljava/io/File;

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/view/ESVideoView;->setVideoPath(Ljava/lang/String;)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->e:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/view/ESVideoView;->start()V

    const-wide/16 v0, 0x0

    .line 5
    iput-wide v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->k:J

    const/4 v0, 0x1

    .line 6
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;->h:Z

    return v0

    :cond_0
    const/4 v0, 0x0

    return v0
.end method

.method protected w()V
    .locals 1

    const/4 v0, 0x1

    .line 1
    invoke-virtual {p0, v0}, Landroid/app/Activity;->requestWindowFeature(I)Z

    return-void
.end method
